import axios from ".";

export const getBlogList = (page?: number, limit?: number) => {
	return axios.get("/blog/getlist", { params: { page, limit } });
};
export const getAllByUser = (id: number, page?: number, limit?: number) => {
	return axios.get(`/blog/getallbyuser/${id}`, { params: { page, limit } });
};
